Class_name = "CTurret"
object_name = "_M4A2_T0"

AimingRay=true

[COCKPIT_LIMITS]
x= -0.12, 0.12
y= -0.25, 0.1
z= -0.12, 0.12
[END]

[OPEN_COCKPIT_LIMITS]
x= -0.12, 0.12
y= -0.2, 0.1
z= -0.12, 0.12
[END]

VisualImage=0,"graphics\Vehicles\_M4A2\_M4A2-C1-low.mgm",true
VisualImage=1,"graphics\Vehicles\_M4A2\_M4A2-C1.mgm",8
CollisionBody="graphics\Vehicles\_M4A2\_M4A2-C1.col"
HitBody="graphics\Vehicles\_M4A2\_M4A2-C1_DetColl.col"
KeepNetworkImages=true	//high-poly cockpit will be visible from other workstations of the object

//VisualImage=ID,model_or_effect,cast_shadows[,debris_effects]
//ID:					INT:	0 - visible everywhere, 1 - visible inside, 2 - visible outside
//model_or_effect:		STRING:	path to model file (mgm) of effect file (epl)
//cast_shadows: 		BOOL/INT:	cast shadows from object or not (cast_shadows=Attr1+Attr2+...+AttrN)
//						VIF_CASTSHADOWS=1,
//						VIF_BLENDMASKLAST=2,
//						VIF_ALWAYSONTOP=4,
//						VIF_FLATAMBIENT=8,
//[,debris_effects]:	BOOL:	optional parameter, show effects on object debris or not

ImageAttr=1	//IA_NOCLIP
//	IA_DEFAULT=0,
//	IA_NOCLIP=1,
//	IA_NOCLIP_ANIM=2,
//	IA_NOROTINTERPOLATION=4,
//	IA_NOMINZ=8,
//	IA_NOMINPIXELS=16,
//	IA_NOPOSINTERPOLATION=32,
//	IA_CLOSEVIEWARG=64,
//	IA_ALWAYSVISIBLE=128,
//	IA_SCALEARG=256,
//	ImageAttr=Attr1+Attr2+...+AttrN

TransparentCockpit=false	// If false - Attached bot will be not rendered if cockpit hatch is closed (default =true)

LocalPosRot=true
ConvexAnimThreshold=0.000001	//  

VisualRadius=5.0

mp_site=true

IsCritical=true	//true -       

TurretType = 11	//    ,    (, )
//11 -  
//12 -  
//13 -  

[attach=0]
	object = "LuaScripts/WorldObjects/Bots/BotTankM4A2_Gunner.txt"
	position = 0,0,0
	rotation = 0,180,0
	convex="bot_pos",false	//false: Attach object relative to "bot_pos" convex (not absolute)
[end]

[attach=1]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretRiffle.txt"
[end]

[attach=2]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretCameraTankByAttach.txt"
	convex="gunsight0",false	//false: Attach object relative to "gunsight0" convex (not absolute)
[end]

AttachedCameras = "LuaScripts\WorldObjects\fixcameras\Vehicles\_M4A2_T.txt"

TargetingScript = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.bin"

SoundScript="LuaScripts/Sound/Vehicles/M4A2_FP_Turret_Main.cfg"

Script="LuaScripts\ObjectScripts\Vehicles\_M4A2_T0.sc"	//  .   -1

//FetchArgVal= cockpit_arg_num, transfer_number, default_cockpit_arg_val, interpolation_type (clamp - shortest on line scale, wrap - shortest on cyclic scale)

AimAngleLimit=30

[TurretsPos=0]
	position = 0.0, 0.0, 0.0
	PosMoveArg = 21000
	SeatArg=22112

	HMDSingleEye = true
	LockTurretCamera = true
	KeepUserDirection = true	// Keep direction after user have switched to another pos or cockpit

	// Joints in orientation order!!!

	[Joint=0]
		SectorAngleMin = -180.0
		SectorAngleMax = 180.0

		AngularSpeed   = 22.5
		ManualAngularSpeed = 3.84	//281      (  -34), 3   
		PrecisionAngle = 5
		MaxInclineAngle = 30

		AnimationArgMin = 0.0
		AnimationArgMax = 1.0

		AnimationArgNum = 20
		ControlAnimationArgNum = 220
		ManualControlAnimationArgNum = 24
		NetworkSend = false	//     CockpitArg

		Point = 0.6702,0.34754,0
		Axis = 0.0,1.0,0.0

		IsCycled = true

		SoundNumber = 2

		HaveManualControl=true
		HaveElectroControl=false
		HaveHydraulicControl=false
		HaveSelfPowered=true
	[end]

	[Joint=1]
		SectorAngleMin = -25.0
		SectorAngleMax = 10.0

		AngularSpeed   = 4.46	//23.5      , 3   
		PrecisionAngle = 1

		AnimationArgMin = 0.430555556
		AnimationArgMax = 0.527777778

		AnimationArgNum = 30

		Point = 0,0,0
		Axis  = 0.0, 0.0, 1.0

		SoundNumber = 1

		GunMovement=true

		NoMoveFar=true	// Block rotation when the target is in the rear henisphere
	[end]

	[GunAnimation=0]
		FireArg = 64101
		CockingArg = 9103
	[end]

	[GunAnimation=1]
		FireArg = 60320
	[end]

//	FireLightArg=60220

	relativeBotStand = 0.0, 0.0, 0.0 // not used for tank
	relativeBotSit = 0.0, 0.0, 0.0 // not used for tank
	relativeBotDead = 0.0, 0.0, 0.0 // not used for tank
	TransitionStandPower = 1 // not used for tank
	TransitionDeadPower = 1 // not used for tank

	BotAttachJointId = 0
	BotFirstAnimJointId = 1
	BotSecondAnimJointId  = 0

	SightPosition = 0.0, 1, 0.0

	defaultDirection = 1.0, 0.1, 0.0
	AimSector=-180, 180, -10, 25	//AI aim limits: left, right, down, up

	CamDisplacement = -0.34917,0.41229,0.57765
[end]

[TurretsGun=0]
	LinkedTurretPos = 0
	//Convex = "#gun"
	DGroup="MainGun"
	DamageProp = 0.001
	AC = true //    tc_fire,  false
	MG = false //    tc_fire_secondary,  false
	
	ShowAutoReloading = true //   GUI      ( )

	Displacement = 2.2209,-0.0007,0
	GunsightPosition = 0,-0.0007,0
	GunType = "LuaScripts/WorldObjects/Weapons/_M3.txt"
	ParallaxDistance = 1000000.0

	ReLoadingStagesTime = 2.0, 6.0, 2.0, 0.3
 
	TriggerPositionArgIdx = 9121	//        
//	FiringPinPositionArgIdx = 9102
//	DrawAnimationArgIdx = 0, 9103	//    
//	AmmunitionMovingArgIdx = 9105
//	AzimuthDeviationArgIdx = 9106
//	ElevationDeviationArgIdx = 9107
//	ReservedMagazinesArgIdx = 9108
//	RoundsInMagazineArgIdx = 0
	HideAmmunitionArgIdx = 9110
//	ReLoadingArgIdx = 9111
//	FlashAnimationArgIdx = 64101
	CartridgesTotalArgIdx = 9109
	MaxRoundsTotal = 97

	BarrelTemperatureDecreaseCorrectionData = 1.0, 4.0, 300.0
	BulletDispertionAngleCorrectionCoefficient = 1.0

	Deviation = 0.198, 0.198, 0.0, 0.01, 0.04, 0.08  //0.3   (  -34  -350)
	// /:
	//-      , /
	//-      , /
	//-       (0.9 -    0.1  ,   )
	//-    
	//-     
	//-      100/

	NumOfAnimations = 1

//	BushCoord = 0, 0, 0
//	BushSpeed = 0.0, 0.0, 0.0

//	BushConfig = "LuaScripts/WorldObjects/Trash/BatchTrashBush.txt"

	SoundNumber = 1
	unloadIfSwitched = true
[end]

[TurretsGun=1]
	LinkedTurretPos = 0
	//Convex = "#mg1"
	DGroup="MachineGun"
	DamageProp = 0.001
	AC = false //    tc_fire,  false
	MG = true //    tc_fire_secondary,  false

	Displacement = 0.54019,-0.0007,-0.4248
	GunsightPosition = 0,-0.0007,-0.4248
	GunType = "LuaScripts/WorldObjects/Weapons/_M1919.txt"
	ParallaxDistance = 1000000.0

	ReLoadingStagesTime = 1.5, 2.0, 1.5, 0.3

	ReservedMagazinesArgIdx = 9008
//	FlashAnimationArgIdx = 60320
	TriggerPositionArgIdx = 9001
	RoundsInMagazineArgIdx = 9009
	AmmunitionMovingArgIdx = 9005
	HideAmmunitionArgIdx = 9010
	ReLoadingArgIdx = 9011
//	AzimuthDeviationArgIdx = 9006
//	ElevationDeviationArgIdx = 9007
//	FiringPinPositionArgIdx = 0			// not used
	DrawAnimationArgIdx = 2, 9003		// 

	Deviation = 0.67, 2.1, 0.0, 0.01, 0.03, 0.06  //0.8333   , 3.3333   ,    .  840/
	// /:
	//-      , /
	//-      , /
	//-       (0.9 -    0.1  ,   )
	//-    
	//-     
	//-      100/

	NumOfAnimations = 4

//	BushCoord = -0.114461, 0.0436303, -0.0287316
//	BushSpeed = 0.944, -0.096, -0.316

//	BushConfig = "LuaScripts/WorldObjects/Trash/Batch_case07-08mm.txt"

	SoundNumber = 3
[end]

// Weapon Modes (unlocks). Tanks uses them just as filter.

//[WeaponMode0]
//	WMname="default"
//	WMgroup="default"
//[end]
//[WeaponMode1]
//	WMname="CAVITY"
//	WMgroup="1"
//[end]
//[WeaponMode2]
//	WMname="AP"
//	WMgroup="2"
//[end]
//[WeaponMode3]
//	WMname="HVAP"
//	WMgroup="3"
//[end]
//[WeaponMode5]
//	WMname="HE"
//	WMgroup="5"
//[end]


////////// AMMUNITIONS (PAYLOADS)


[Ammunition0]	//  (default, duplicates one of 2-types payload)
	name="0-M3-CV-48 + 0-M3-HE-48 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=-1,-2,-3,-4,-5
	GunAmmunition0=3,43
	GunAmmunition1=50
[end]

////////// 3 TYPES

[Ammunition1]
	name="0-M3-CV-32 + 0-M3-AP-32 + 0-M3-HE-32 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=135,-2,-4
	GunAmmunition0=5,25,45
	GunAmmunition1=50
[end]

// 3 types prevail

[Ammunition2]
	name="0-M3-CV-65 + 0-M3-AP-16 + 0-M3-HE-16 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=135,-2,-4
	GunAmmunition0=2,28,48
	GunAmmunition1=50
[end]
[Ammunition3]
	name="0-M3-CV-16 + 0-M3-AP-65 + 0-M3-HE-16 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=135,-2,-4
	GunAmmunition0=8,22,48
	GunAmmunition1=50
[end]
[Ammunition4]
	name="0-M3-CV-16 + 0-M3-AP-16 + 0-M3-HE-65 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=135,-2,-4
	GunAmmunition0=8,28,42
	GunAmmunition1=50
[end]

// 3 types reduced

[Ammunition5]
	name="0-M3-CV-16 + 0-M3-AP-16 + 0-M3-HE-16 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=135,-2,-4
	GunAmmunition0=8,28,48
	GunAmmunition1=50
[end]

////////// 2 TYPES

[Ammunition6]
	name="0-M3-CV-48 + 0-M3-HE-48 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=15,-2,-3,-4
	GunAmmunition0=3,43
	GunAmmunition1=50
[end]
[Ammunition7]
	name="0-M3-CV-48 + 0-M3-AP-48 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=13,-2,-4,-5
	GunAmmunition0=3,23
	GunAmmunition1=50
[end]
[Ammunition8]
	name="0-M3-AP-48 + 0-M3-HE-48 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=35,-1,-2,-4
	GunAmmunition0=23,43
	GunAmmunition1=50
[end]

// 2 types prevail

[Ammunition9]
	name="0-M3-CV-81 + 0-M3-AP-16 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=13,-2,-4,-5
	GunAmmunition0=1,28
	GunAmmunition1=50
[end]
[Ammunition10]
	name="0-M3-CV-16 + 0-M3-AP-81 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=13,-2,-4,-5
	GunAmmunition0=8,21
	GunAmmunition1=50
[end]

[Ammunition11]
	name="0-M3-CV-81 + 0-M3-HE-16 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=15,-2,-3,-4
	GunAmmunition0=1,48
	GunAmmunition1=50
[end]
[Ammunition12]
	name="0-M3-CV-16 + 0-M3-HE-81 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=15,-2,-3,-4
	GunAmmunition0=8,41
	GunAmmunition1=50
[end]

[Ammunition13]
	name="0-M3-AP-81 + 0-M3-HE-16 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=35,-1,-2,-4
	GunAmmunition0=21,48
	GunAmmunition1=50
[end]
[Ammunition14]
	name="0-M3-AP-16 + 0-M3-HE-81 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=35,-1,-2,-4
	GunAmmunition0=28,41
	GunAmmunition1=50
[end]

// 2 types reduced

[Ammunition15]
	name="0-M3-CV-24 + 0-M3-AP-24 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=13,-2,-4,-5
	GunAmmunition0=6,26
	GunAmmunition1=50
[end]
[Ammunition16]
	name="0-M3-CV-24 + 0-M3-HE-24 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=15,-2,-3,-4
	GunAmmunition0=6,46
	GunAmmunition1=50
[end]
[Ammunition17]
	name="0-M3-AP-24 + 0-M3-HE-24 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=35,-1,-2,-4
	GunAmmunition0=26,46
	GunAmmunition1=50
[end]

////////// 1 TYPE

[Ammunition18]
	name="0-M3-CV-97 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=1,-2,-3,-4,-5
	GunAmmunition0=0
	GunAmmunition1=50
[end]
[Ammunition19]
	name="0-M3-AP-97 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=3,-1,-2,-4,-5
	GunAmmunition0=20
	GunAmmunition1=50
[end]
[Ammunition20]
	name="0-M3-HE-97 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=5,-1,-2,-3,-4
	GunAmmunition0=40
	GunAmmunition1=50
[end]

// 1 type reduced

[Ammunition21]
	name="0-M3-CV-48 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=1,-2,-3,-4,-5
	GunAmmunition0=3
	GunAmmunition1=50
[end]
[Ammunition22]
	name="0-M3-AP-48 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=3,-1,-2,-4,-5
	GunAmmunition0=23
	GunAmmunition1=50
[end]
[Ammunition23]
	name="0-M3-HE-48 + 1-M230-AP-6750 + 2-M250-AP-1600"
	WeaponModes=5,-1,-2,-3,-4
	GunAmmunition0=43
	GunAmmunition1=50
[end]



////////// GUN BELT AMMUNITIONS



[GunAmmunition0]
	RoundsInMagazine = 97
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition1]
	RoundsInMagazine = 81
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition2]
	RoundsInMagazine = 65
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition3]
	RoundsInMagazine = 48
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition5]
	RoundsInMagazine = 32
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition6]
	RoundsInMagazine = 24
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition8]
	RoundsInMagazine = 16
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_CV.txt"
	GunSightTypeArgValue = 0.0
[end]

[GunAmmunition20]
	RoundsInMagazine = 97
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition21]
	RoundsInMagazine = 81
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition22]
	RoundsInMagazine = 65
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition23]
	RoundsInMagazine = 48
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition25]
	RoundsInMagazine = 32
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition26]
	RoundsInMagazine = 24
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.txt"
	GunSightTypeArgValue = 0.0
[end]
[GunAmmunition28]
	RoundsInMagazine = 16
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_AP.txt"
	GunSightTypeArgValue = 0.0
[end]

[GunAmmunition40]
	RoundsInMagazine = 97
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.txt"
	GunSightTypeArgValue = 1.0
[end]
[GunAmmunition41]
	RoundsInMagazine = 81
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.txt"
	GunSightTypeArgValue = 1.0
[end]
[GunAmmunition42]
	RoundsInMagazine = 65
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.txt"
	GunSightTypeArgValue = 1.0
[end]
[GunAmmunition43]
	RoundsInMagazine = 48
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.txt"
	GunSightTypeArgValue = 1.0
[end]
[GunAmmunition45]
	RoundsInMagazine = 32
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.txt"
	GunSightTypeArgValue = 1.0
[end]
[GunAmmunition46]
	RoundsInMagazine = 24
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.txt"
	GunSightTypeArgValue = 1.0
[end]
[GunAmmunition48]
	RoundsInMagazine = 16
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/SHELL_USA_75_HE.txt"
	GunSightTypeArgValue = 1.0
[end]

[GunAmmunition50]
	MaxRoundsInMagazine = 250
	RoundsInMagazine = 250
	MaxReservedMagazines = 7
	ReservedMagazines = 7
	MaxMisFiresInMagazine = 0
	AmountRoundsWithOneTracer = 4
	ParallaxConfig="LuaScripts/WorldObjects/Ballistics/Projectiles/BULLET_USA_7-62x63_AP.bin"
	BulletConfig = "LuaScripts/WorldObjects/Ballistics/Projectiles/BULLET_USA_7-62x63_AP.txt"
[end]

SightPos = 0.0, 1.3, 0.0
PositionChangeTime = 0.5
StandDuration = 1.0
SitDuration = 1.0
PreEjectDuration = 1.0
ReloadDelay = 0.3
FreezeOnReload = false
AutoRecharge = true

BotRotaionValueZ = 0	// not used for tank
LegsParameter = 0 // not used for tank

BotMaxSecondAngle = 25.0 // not used for tank
BotMinSecondAngle = -5.0 // not used for tank

BotMaxFirstAngle  = 10.0 // not used for tank
BotMinFirstAngle  = -10.0  // not used for tank

FirstToSecondInterp = 0.0 // not used for tank

GunSightDistanceArg = 9544
GunSightYawArg = 9546
//GunSightTypeArg = 9545

//   ,         
//SectorLimits =  -45.0,  +45.0,  25.0, 90.0
//SectorLimits =	-180.0, -140.0, -15.0, 90.0
//SectorLimits =	 140.0,  180.0, -15.0, 90.0

// Damage

//BeamHitZeroArmor=true //      m_fArmor  m_fArmorSides ( ,       )
//LifeRate=40000
//LifeRateFrag=40000 
//Firing=0.005
//Armor=66
//[ArmorBox]			//    ,     ,   ,     Armor=
//	FovH=90			//          ,     ,  ArmorFront
//	FovV=90			//          ,     ,  ArmorFront
//					//  5        
//	ArmorFront=86
//	ArmorBack=66
//	ArmorTop=30
//	ArmorBottom=30
//	ArmorRight=66
//	ArmorLeft=66
//[end]

//maxDamageArgValue=0.98
//DamageArg=5000
damageablePart=""

IsCritical=true	//true -       
LifeK=400			//         ( -  )

KillChildObjectsOnParentDeath = true

SphereHitProtection=41	//       

[SphereProtectionBoxOpen]	//    ,        ,   ,     SphereHitProtection=
	FovH=90			//          ,     ,  ArmorFront
	FovV=90			//          ,     ,  ArmorFront
					//  5        
	ArmorFront=70
	ArmorBack=41
	ArmorTop=19
	ArmorBottom=20
	ArmorRight=41
	ArmorLeft=41
[end]

[SphereProtectionBoxClose]	//    ,        ,   ,     SphereHitProtection=
	FovH=90			//          ,     ,  ArmorFront
	FovV=150			//          ,     ,  ArmorFront
					//  5        
	ArmorFront=70
	ArmorBack=41
	ArmorTop=19
	ArmorBottom=20
	ArmorRight=41
	ArmorLeft=41
[end]

////	Energy loss for bullet travel through HitBody convices	////

energyloss="",true,1,200	//     , true -       -,       ,        

//Damageable parts
energyloss="#gun",true,20,20000				//Main gun
energyloss="#mg1",true,5,20000				//Coaxial machinegun
energyloss="turretGN_01",false,61,1			//Like neares turret armour
energyloss="turretGN_02",false,61,1			//Like neares turret armour
energyloss="turretGN_03",false,41,1			//Like neares turret armour
energyloss="turretGN_04",false,41,1			//Like neares turret armour
energyloss="turretGN_05",false,41,1			//Like neares turret armour
energyloss="turretGN_06",false,41,1			//Like neares turret armour
energyloss="turretGN_07",true,5,20000		//Turret turn main reductor
energyloss="turretGN_08",true,5,20000		//Turret turn hydraulic actuator
energyloss="ammunition_3",true,2,20000		//Shells payload
energyloss="ammunition_5",true,2,20000		//Shells payload
energyloss="#turret1000_coll",false,0,1		//Dummy collision for visual damage, forward-left
energyloss="#turret1001_coll",false,0,1		//Dummy collision for visual damage, forward-right
energyloss="#turret1002_coll",false,0,1		//Dummy collision for visual damage, backward-left
energyloss="#turret1003_coll",false,0,1		//Dummy collision for visual damage, backward-right
energyloss="#turret1004a_coll",false,0,1		//Dummy collision for visual damage, mask, part 1
energyloss="#turret1004b_coll",false,0,1		//Dummy collision for visual damage, mask, part 2
energyloss="sight_1054",false,1,1			//Turret visor glass
energyloss="sight_1055",false,1,1			//Turret visor glass
energyloss="radio",true,1,15000				//Radio station

//Armour
energyloss="front_1",false,30,1				//Turret bow armouring, 38mm, K=0.8
energyloss="front_2",false,41,1				//Turret bow armouring, 51mm, K=0.8
energyloss="front_3a",false,61,1			//Turret bow armouring, 76mm, K=0.8
energyloss="front_3b",false,61,1			//Turret bow armouring, 76mm, K=0.8
energyloss="front_3d",false,61,1			//Turret bow armouring, 76mm, K=0.8
energyloss="front_3e",false,61,1			//Turret bow armouring, 76mm, K=0.8
energyloss="front_3f",false,61,1			//Turret bow armouring, 76mm, K=0.8
energyloss="front_3g",false,61,1			//Turret bow armouring, 76mm, K=0.8
energyloss="front_4",false,41,1				//Turret bow armouring, 51mm, K=0.8
energyloss="front_5a",false,61,1			//Turret bow armouring, 76mm, K=0.8
energyloss="front_5b",false,61,1			//Turret bow armouring, 76mm, K=0.8
energyloss="front_5c",false,61,1			//Turret bow armouring, 76mm, K=0.8
energyloss="front_5d",false,61,1			//Turret bow armouring, 76mm, K=0.8
energyloss="front_6a",false,41,1			//Turret bow armouring, 51mm, K=0.8
energyloss="front_6b",false,41,1			//Turret bow armouring, 51mm, K=0.8
energyloss="front_7a",false,32,1			//Gun wrist-pin, 40mm, K=0.8
energyloss="front_7b",false,32,1			//Gun wrist-pin, 40mm, K=0.8
energyloss="right_1",false,41,1				//Turret right armouring, 51mm, K=0.8
energyloss="right_2a",false,61,1			//Turret right armouring, 76mm, K=0.8
energyloss="right_2b",false,41,1			//Turret right armouring, 51mm, K=0.8
energyloss="right_2c",false,41,1			//Turret right armouring, 51mm, K=0.8
energyloss="right_2d",false,41,1			//Turret right armouring, 51mm, K=0.8
energyloss="right_3",false,41,1				//Turret right armouring, 51mm, K=0.8
energyloss="left_1",false,61,1				//Turret left armouring, 76mm, K=0.8
energyloss="left_2a",false,41,1				//Turret left armouring, 51mm, K=0.8
energyloss="left_2b",false,41,1				//Turret left armouring, 51mm, K=0.8
energyloss="left_3",false,41,1				//Turret left armouring, 51mm, K=0.8
energyloss="left_4",false,30,1				//Turret left armouring, 38mm, K=0.8
energyloss="back_1",false,41,1				//Turret stern armouring, 51mm, K=0.8
energyloss="back_3",false,41,1				//Turret stern armouring, 51mm, K=0.8
energyloss="back_4",false,1,1				//Turret stern antenna armouring, no protection for turret, just for hit
energyloss="back_5",false,30,1				//Turret stern armouring, 38mm, K=0.8
energyloss="top_1a",false,20,1				//Turret stern armouring, 25mm, K=0.8
energyloss="top_1b",false,20,1				//Turret stern armouring, 25mm, K=0.8
energyloss="top_1c",false,20,1				//Turret stern armouring, 25mm, K=0.8
energyloss="mask_1a",false,30,1				//Gun mask bottom armour plate, 38mm, K=0.8
energyloss="mask_1b",false,30,1				//Gun mask bottom armour plate, 38mm, K=0.8
energyloss="mask_2a",false,20,1				//Gun mask bottom armour plate, 25mm, K=0.8
energyloss="mask_2b",false,20,1				//Gun mask bottom armour plate, 25mm, K=0.8
energyloss="mask_3",false,30,1				//Gun mask bottom armour plate, 38mm, K=0.8
energyloss="mask_4",false,41,1				//Gun mask bottom armour plate, 51mm, K=0.8

[ReflectArmorBox]	//    ,    energyloss=0,1.    ,     ,   ,     Armor=
	FovH=90			//          ,     ,  ArmorFront
	FovV=140		//          ,     ,  ArmorFront
					//  5        
	ArmorFront=61
	ArmorBack=41
	ArmorTop=20
	ArmorBottom=13
	ArmorRight=41
	ArmorLeft=41
[end]

/////Functional Damage Groups

[DGroup=TurretTurn]		//   _KV1s.txt     DGroup
	IsCritical=false
	LifeK=200
	convex="turretGN_07", 5,20000,"MT_ARMOR"
	convex="turretGN_01",15,30000,"MT_ARMOR"
	convex="turretGN_02",15,30000,"MT_ARMOR"
	convex="turretGN_03",15,30000,"MT_ARMOR"
	convex="turretGN_04",15,30000,"MT_ARMOR"
	convex="turretGN_05",15,30000,"MT_ARMOR"
	convex="turretGN_06",15,30000,"MT_ARMOR"
	[SphereHitArmorBox]	//+5  
		FovH=90
		FovV=90
		ArmorFront=75
		ArmorBack=46
		ArmorTop=23
		ArmorBottom=22
		ArmorRight=46
		ArmorLeft=46
	[end]
	LifeRateFrag=20000
	RepairSpeed=0.001667
	RepairSource=0
	InstantRepair=true
	RepairDependsOn="GunTurn", 0.95
	GuiParam=12, true,true,true
[end]
[DGroup=TurretTurnMain]		//   _KV1s.txt     DGroup
	IsCritical=false
	LifeK=100
	convex="turretGN_08", 5,20000,"MT_ARMOR"
	[SphereHitArmorBox]	//+5  
		FovH=90
		FovV=90
		ArmorFront=75
		ArmorBack=46
		ArmorTop=23
		ArmorBottom=22
		ArmorRight=46
		ArmorLeft=46
	[end]
	LifeRateFrag=10000
	RepairSpeed=0.003333	// (5 )
	RepairSource=0
	InstantRepair=true
	RepairDependsOn="TurretTurn", 0.95
	GuiParam=13, true,true,true
[end]
[DGroup=GunTurn]		//   _KV1s.txt     DGroup
	IsCritical=false
	LifeK=100
	convex="mask_3",30,30000,"MT_ARMOR"
	convex="front_7a",32,30000,"MT_ARMOR"
	convex="front_7b",32,30000,"MT_ARMOR"
	SphereHitProtection=32
	LifeRateFrag=10000
	RepairSpeed=0.001667	// (10 )
	RepairSource=0
	InstantRepair=true
	GuiParam=14, true,true,true
[end]
[DGroup=MainGun]
	IsCritical=false
	LifeK=100
	convex="#gun",20,30000,"MT_ARMOR"
	[SphereHitArmorBox]
		FovH=90
		FovV=90
		ArmorFront=20
		ArmorBack=20
		ArmorTop=20
		ArmorBottom=20
		ArmorRight=20
		ArmorLeft=20
	[end]
	LifeRateFrag=15000
	RepairSpeed=0.001667	// (10 )
	RepairSource=0
	InstantRepair=true
	GuiParam=15, true,true,true
[end]
[DGroup=MachineGun]
	IsCritical=false
	LifeK=20
	convex="#mg1",5,10000,"MT_ARMOR"
	[SphereHitArmorBox]
		FovH=170
		FovV=90
		ArmorFront=5
		ArmorBack=100
		ArmorTop=5
		ArmorBottom=30
		ArmorRight=5
		ArmorLeft=5
	[end]
	LifeRateFrag=5000
	RepairSpeed=0.002083	// (8 )
	RepairSource=0
	InstantRepair=true
	RepairDependsOn="MainGun", 0.95
	GuiParam=17, true,true,true
[end]
[DGroup=Body]
	IsCritical=true
	LifeK=200
	convex="ammunition_3", 5,20000,"MT_ARMOR"
	convex="ammunition_5", 5,20000,"MT_ARMOR"
	[SphereHitArmorBox]	//+5  
		FovH=90
		FovV=90
		ArmorFront=75
		ArmorBack=46
		ArmorTop=20
		ArmorBottom=30
		ArmorRight=46
		ArmorLeft=46
	[end]
	LifeRateFrag=20000
	DamageArg=5000
	MinValidLife=0.02
	Explosion="LuaScripts\WorldObjects\Explosions\Detonation\TankExplosion.txt"
	RepairSpeed=0.016667	// (1 )
	RepairSource=0
	InstantRepair=false
[end]

//End of Functional Damage Groups
//Graphical Damage Groups:

[DGroup=CornerFL]
	IsCritical=false
	LifeK=50
	convex="#turret1000_coll",10,20000,"MT_ARMOR"
	[SphereHitArmorBox]
		FovH=90
		FovV=90
		ArmorFront=10
		ArmorBack=92
		ArmorTop=10
		ArmorBottom=10
		ArmorRight=92
		ArmorLeft=10
	[end]
	LifeRateFrag=20000
	DamageArg=1000
	DamageMaxVal=0.98
	RepairSpeed=0.004167	// (4 ,    "" =4   1 )
	RepairSource=4			//     ""
	InstantRepair=false
	RepairDependsOn="Mask", 0.95
[end]
[DGroup=CornerFR]
	IsCritical=false
	LifeK=50
	convex="#turret1001_coll",10,20000,"MT_ARMOR"
	[SphereHitArmorBox]
		FovH=90
		FovV=90
		ArmorFront=10
		ArmorBack=92
		ArmorTop=10
		ArmorBottom=10
		ArmorRight=10
		ArmorLeft=92
	[end]
	LifeRateFrag=20000
	DamageArg=1001
	DamageMaxVal=0.98
	RepairSpeed=0.004167	// (4 ,    "" =4   1 )
	RepairSource=4			//     ""
	InstantRepair=false
	RepairDependsOn="CornerFL", 0.95
[end]
[DGroup=CornerRL]
	IsCritical=false
	LifeK=50
	convex="#turret1002_coll",10,20000,"MT_ARMOR"
	convex="#turret1002a_coll",10,20000,"MT_ARMOR"
	[SphereHitArmorBox]
		FovH=90
		FovV=90
		ArmorFront=92
		ArmorBack=10
		ArmorTop=10
		ArmorBottom=10
		ArmorRight=92
		ArmorLeft=10
	[end]
	LifeRateFrag=20000
	DamageArg=1002
	DamageMaxVal=0.98
	RepairSpeed=0.004167	// (4 ,    "" =4   1 )
	RepairSource=4			//     ""
	InstantRepair=false
	RepairDependsOn="CornerFR", 0.95
[end]
[DGroup=CornerRR]
	IsCritical=false
	LifeK=50
	convex="#turret1003_coll",10,20000,"MT_ARMOR"
	[SphereHitArmorBox]
		FovH=90
		FovV=90
		ArmorFront=92
		ArmorBack=10
		ArmorTop=10
		ArmorBottom=10
		ArmorRight=10
		ArmorLeft=92
	[end]
	LifeRateFrag=20000
	DamageArg=1003
	DamageMaxVal=0.98
	RepairSpeed=0.004167	// (4 ,    "" =4   1 )
	RepairSource=4			//     ""
	InstantRepair=false
	RepairDependsOn="CornerRL", 0.95
[end]
[DGroup=Mask]
	IsCritical=false
	LifeK=50
	convex="#turret1004_coll",10,20000,"MT_ARMOR"
	convex="#turret1004a_coll",10,20000,"MT_ARMOR"
	[SphereHitArmorBox]
		FovH=60
		FovV=90
		ArmorFront=10
		ArmorBack=92
		ArmorTop=10
		ArmorBottom=10
		ArmorRight=10
		ArmorLeft=10
	[end]
	LifeRateFrag=20000
	DamageArg=1004
	DamageMaxVal=0.98
	RepairSpeed=0.008333	// (2 ,    "" =4   0.5 )
	RepairSource=4			//     ""
	InstantRepair=false
[end]

[DGroup=Visor1]
	IsCritical=false
	LifeK=100
	convex="sight_1054",1,500,"MT_ARMOR"
	[SphereHitArmorBox]
		FovH=60
		FovV=20
		ArmorFront=1
		ArmorBack=8
		ArmorTop=8
		ArmorBottom=20
		ArmorRight=8
		ArmorLeft=8
	[end]
	LifeRateFrag=5000
	DamageArg=1054
	RepairSpeed=0.033333	// (0.5 )
	RepairSource=0
	InstantRepair=true
	GuiParam=11, true,true,true
[end]
[DGroup=Visor2]
	IsCritical=false
	LifeK=2
	convex="sight_1055",1,500,"MT_ARMOR"
	[SphereHitArmorBox]
		FovH=60
		FovV=20
		ArmorFront=8
		ArmorBack=1
		ArmorTop=8
		ArmorBottom=20
		ArmorRight=8
		ArmorLeft=8
	[end]
	LifeRateFrag=5000
	DamageArg=1055
	RepairSpeed=0.033333	// (0.5 )
	RepairSource=0
	InstantRepair=true
	RepairDependsOn="Visor1", 0.95
	GuiParam=11, true,true,true
[end]

//End of Graphical Damage Groups

[Entrance]
	EntrancePos= 1.0, -0.94, 3.5
	EntranceRot= 0,90,0
	JumpDir= 0,0,0
[end]


ColimatorHideArg=9547

//DefaultGun=0	//default=-1, all of the guns are active, switching belts in gun 0. >=0 sets default gun and switshing will be between guns

ClosedHatch=true // True -    
ClosedWindow=true  // True -    
NoAimingWhenOpened=false  // True -      
StopIfAimingProhibited=true			// True -         NoAimingWhenOpened/NoAimingWhenClosed
CanopyOpenByDefault=false
WindowOpenByDefault=false
canopytime=3.5625	//   Arg=0  Arg=0.95.     Arg=0.1  Arg=0.9     (3 ),    0.95/0.8*5=3.5625.
windowtime=2

//OpenCockpitArg=31
AutoCanopy=false
CockpitLightArg=30000,0.45,0.55,0.6
canopyLockSoundMask=10 	// 0 bit - canopy unlock, start
						// 1 bit - canopy unlock, end
						// 2 bit - canopy lock, start
						// 3 bit - canopy lock, end

//OpenWindowArg=33
AutoWindow=false
WindowLightArg=30010,0.45,0.55,0.6

TechChatCrewRole=3	//    (Driver: 1, Gunner: 3, Commander: 5, Machinegunner: 7, Radioman: 9)

SelfPoweredArg=64030

SetCockpitArgs=true	// true -             , false -              

//CockpitArg= FetchType, CmdID, SubcmdID, ArgNum, ArgValDefault, SmoothingType, SmoothingPower, NetworkFlag
//FetchType=-1:       
//FetchType=-2:         
//FetchType=-3:          parent-
//FetchType>=0:          child-   Attach ID
//CmdID=[0..999]: ID    ,    .
//CmdID=[1000..1999]: ID    ,    .
//SubcmdID=[0..3]: ID     .
//SubcmdID=[0..1]: ID     .
//ArgNum:     / .
//ArgValDefault:      ,    .
//SmoothingType: smooth_clamp -  - 
//SmoothingType: smooth_wrap -   
//SmoothingPower:   
//NetworkFlag="":           ,  SetCockpitArgs=false
//NetworkFlag="low_freq":     ,       ,    
//NetworkFlag="med_freq":     ,       ,    
//NetworkFlag="high_freq":     ,       ,    
//NetworkFlag="granted_single":     ,       ,     

CockpitArg = -3, 0000, 0, 60210, 0.0, "smooth_clamp", 0.0, ""			// Electric point lights
CockpitArg = -3, 0000, 1, 60310, 0.0, "smooth_clamp", 0.0, ""			// Electric flood light
CockpitArg = -2, 0100, 0, 9109, 0.0, "", 0.0, "granted_single"			// CartridgesTotalArgIdx, gun0
CockpitArg = -2, 0100, 1, 9008, 0.0, "", 0.0, "granted_single"			// ReservedMagazinesArgIdx, gun1
CockpitArg = -2, 0100, 2, 64030, 0.0, "", 0.0, "granted_single"			// SelfPoweredArg

CockpitArg = -2, 0150, 0, 9001, 0.0, "smooth_clamp", 0.1, "med_freq"	// TriggerPositionArgIdx, gun1
CockpitArg = -2, 0150, 1, 9009, 0.0, "smooth_wrap", 0.1, "med_freq"		// RoundsInMagazineArgIdx, gun1
CockpitArg = -2, 0150, 2, 9010, 0.0, "", 0.0, "med_freq"				// HideAmmunitionArgIdx, gun1
CockpitArg = -2, 0150, 3, 9011, 0.0, "smooth_wrap", 0.1, "med_freq"		// ReLoadingArgIdx, gun1

CockpitArg = -2, 0151, 0, 9121, 0.0, "smooth_clamp", 0.1, "med_freq"	// TriggerPositionArgIdx, gun0
CockpitArg = -2, 0151, 1, 9110, 0.0, "", 0.0, "med_freq"				// HideAmmunitionArgIdx, gun0

CockpitArg = -2, 1150, 0, 220, 0.5, "smooth_clamp", 0.5, "low_freq"		// ControlAnimationArgNum
CockpitArg = -2, 1150, 1, 24, 0.5, "smooth_clamp", 0.5, "low_freq"		// ManualControlAnimationArgNum

[moveDeviator]
  HiFreqAmp = 0.2f
  MaxDeviation = 0.3f
  Periods = 2.1, 0.4;
[end]
accelDirK = 0.3
accelDirSmooth = 0.05
accelSideK = 0.3
accelSideSmooth = 0.05